// 后台管理页面用户数据表
'use strict';

module.exports = (sequelize, DataTypes) => {
  var Account = sequelize.define('Account', {
    id: {
      type: DataTypes.INTEGER,
      autoIncrement: true,
      primaryKey: true
    },
    username: DataTypes.STRING, // 登录需要的账号
    hash: DataTypes.STRING // 加密后的密码hash
  }, {});
  Account.associate = function (models) {
    // associations can be defined here
  };
  Account.sync({ alter: true })
  return Account;
};